import { houseRomms } from "@/assets/data/house-rooms";

const houseFormOption: object = {
  size: "large",
  labelWidth: 100,
  submitBtn: true,
  emptyBtn: true,
  column: [
    {
      label: "户型图",
      prop: "image",
      type: "upload",
      limit: 1,
      accept: "image/*",
      fileType: "img",
      listType: "picture-card",
      rules: [{ required: true, message: "请上传户型图", trigger: "blur" }],
    },
    {
      label: "名称",
      prop: "name",
      rules: [{ required: true, message: "请输入户型名称", trigger: "blur" }],
    },

    {
      label: "类型",
      prop: "room",
      rules: [{ required: true, message: "请选择类型", trigger: "blur" }],
      type: "select",
      dicData: houseRomms,
    },
  ],
};

export default houseFormOption;
